package com.mx.zb.mng.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.mx.zb.mng.bo.Operator;
import com.mx.zb.mng.utils.db2.Page;

@Mapper
public interface OperatorMapper {
    int deleteByPrimaryKey(String id);
    int deleteByRole(String id);

    int insert(Operator record);

    int insertSelective(Operator record);

    Operator selectByPrimaryKey(String id);
    Operator selectByName(@Param(value="name")String name,@Param(value="id")String id);

    int updateByPrimaryKeySelective(Operator record);

    int updateByPrimaryKey(Operator record);
    
    Operator validateLogin(Operator record);
    
    Page<Operator> queryPage(Operator record);
    
    Operator selectByAgentId(Operator record);


}